package com.vegetable.modules.mapper.baseData;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.vegetable.modules.entity.baseData.Products;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * <p>
 * 产地商品 Mapper 接口
 * </p>
 *
 * @author wangruijie
 * @since 2024-03-04
 */
@Mapper
public interface ProductsMapper extends BaseMapper<Products> {

    /**
     * 生成流水单号
     * @return
     */
    String getNextCode();

    IPage<Products> listProducts(IPage page, @Param("po") Map<String, Object> po);
}
